package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Member;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IMemberService {
    PageResult list(QueryObject qo);

    List<Member> listAll();

    void save(Member member);

    void update(Member member);

    void remove(Long id);

    List<Member> queryForExport(QueryObject qo);

    void lossCard(Long id);

    void cancelLossCard(Long id);

    void modifyPassword(Long id, String oldPassword, String newPassword);

    void resetPassword(Long id);

    void moveGroup(Long id, Long newGroupId);

    void addTag(Long id, Long newTagId);

    Member queryByKeyword(String keyword);
}
